package com.neusoft.elmboot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.neusoft.elmboot.po.Seller;
import com.neusoft.elmboot.po.Support;

@Repository
public interface SellerMapper {
	
	@Select("select * from seller where businessId=#{businessId}")
	Seller getSellerById(Integer businessId);
	
	@Select("select type,description from support where sellerId=#{sellerId}")
	List<Support> listSupportBySellerId(Integer sellerId);
	
	@Select("select data from pic where sellerId=#{sellerId}")
	List<String> listPicBySellerId(Integer sellerId);
	
	@Select("select text from info where sellerId=#{sellerId}")
	List<String> listInfoBySellerId(Integer sellerId);

}
